testtreemodel: fix unused variable on windows
authorIgnacio Casal Quinteiro <icq@gnome.org>
Thu, 24 Jul 2014 06:34:02 +0000 (08:34 +0200)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Thu, 24 Jul 2014 06:34:02 +0000 (08:34 +0200)
tests/testtreemodel.c

index 0c228ea40771b3fcf246a0a939c7167af16854a4..c240b18aa9f21989853d376e94ab672f53f3ed1d 100644 (file)
@@ -212,7 +212,10 @@ test_run (gchar        *title,
   gint i, k, d, items;
   GTimer *timer;
   gdouble elapsed;
-  int uordblks_before = 0, memused;
+  int memused;
+#ifdef HAVE_MALLINFO
+  int uordblks_before = 0;
+#endif
 
   g_print ("%s (average over %d runs, time in milliseconds)\n"
           "items \ttime      \ttime/item \tused memory\n", title, repeats);